home *** CD-ROM | disk | FTP | other *** search
- %case window field%
- %case create%
- %case dispose%
- %case mousein%
- SetRect (&bounds, %left%, %top%, %right%, %bottom%);
- if (PtInRect (where, &bounds)) {
- TrackPopup (bounds, %popupID%, &cur->%FieldName%);
- }
- %case update%
- SetRect (&bounds, %left%, %top%, %right%, %bottom%);
- UpdatePopup (bounds, %popupID%, cur->%FieldName%);
- %case activate%
- %case track%
- %case itemNr%
- %DefineItem%
- %case dialog field%
- short% %%fieldname%;
- %case init field%
- info->%fieldname% = 1;
- %case auxiliary%
- /*----------*/
- short x%fieldname%;
-
- /*----------*/
- static pascal void Draw%itemname% (DialogPtr whichDialog,
- short itemNr);
- static pascal void Draw%itemname% (whichDialog, itemNr)
- DialogPtr whichDialog;
- short itemNr;
- {
- %if lang = MPW%
- #pragma unused (whichDialog)
-
- %end if%
- DrawPopup (itemNr, %popupID%, x%fieldname%);
- } /*Draw%itemname%*/
-
- %case filter%
- %case set%
- x%fieldname% = info->%fieldname%;
- SetUserItem (%itemname%, (ProcPtr) &Draw%itemname%);
- %case hit%
- case %itemname%:
- %if not labelName = %
- InvertLabel (%labelName%);
- %endif%
- DoPopup (%itemname%, %popupID%, &info->%fieldname%);
- x%fieldname% = info->%fieldname%;
- %if not labelName = %
- InvertLabel (%labelName%);
- %endif%
- break;
- %case finish%
-